package com.archive.manage.service;

import com.archive.manage.domain.StuArchive;
import com.archive.manage.domain.entity.ArchiveCreateResponse;
import com.archive.manage.domain.entity.ArchiveGetResponse;
import com.archive.manage.domain.entity.ArchiveGetResult;

/**
 * 调用区块链智能合约接口
 *
 * @author Hamlin
 * @data 2025-07-08
 */
public interface IBlockchainService {
    ArchiveCreateResponse createArchive(String ccname, String channel, String caller, String operator, StuArchive archive) throws Exception;

    boolean existArchive(String ccname, String channel, String caller, String id) throws Exception;

    ArchiveCreateResponse update(String ccname, String channel, String caller, String operator, StuArchive newArchive) throws Exception;

    ArchiveGetResult getArchive(String ccname, String channel, String caller, String id) throws Exception;

    ArchiveGetResponse deleteArchive(String ccname, String channel, String caller, String id) throws Exception;

}
